﻿$.extend($.validity.messages, {
    require:"#{field} 必须填写.",
    match:"#{field} 格式不正确.",
    integer:"#{field} 必须是正整数.",
    date:"#{field} 必须是日期. (例如, 04.30.2011)",
    email:"#{field} 必须是电子邮件.",
    usd:"#{field} 必须是美元单位.",
    url:"#{field} 必须是URL.",
    number:"#{field} 必须是数字.",
    zip:"#{field} 必须是邮政编码. (######)",
    phone:"#{field} 必须是电话号码.",
    guid:"#{field} 必须是GUID (例如 {3F2504E0-4F89-11D3-9A0C-0305E82C3301}).",
    time24:"#{field} 必须是24小时制时间.",
    time12:"#{field} 必须是12小时制时间. (12:00 AM/PM)",

    // Value range messages:
    lessThan:"#{field} 必须小于 #{max}.",
    lessThanOrEqualTo:"#{field} 必须小于或等于 #{max}.",
    greaterThan:"#{field} 必须大于 #{min}.",
    greaterThanOrEqualTo:"#{field} 必须大于或等于 #{min}.",
    range:"#{field} 必须在 #{min} 和 #{max} 之间.",

    // Value length messages:
    tooLong:"#{field} 不能多于 #{max} 个字符.",
    tooShort:"#{field} 不能少于 #{min} 个字符.}",

    // Aggregate validator messages:
    equal:"值不相等.",
    distinct:"不能重复.",
    sum:"和不等于 #{sum}.",
    sumMax:"和必须小于 #{max}.",
    sumMin:"和必须大于 #{min}.",

    nonHtml:"#{field} 不能包含HTML文本.",
    alphabet:"#{field} 含有非法字符.",

    generic:"无效."
});

